package com.example.conversorcplp;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

import com.example.conversorcplp.Paises;

public class PaisDestino extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.paises_list);
	}
	
	public void SelectCountry(View v){
		
		switch(v.getId()) {
			case R.id.angola:
				Paises.paisdestino = "Kwanza";
				break;
			case R.id.brazil:
				Paises.paisdestino = "Real";
				break;
			case R.id.cverde:
				Paises.paisdestino = "Escudo CV";
				break;
			case R.id.equatorial:
				Paises.paisdestino = "Franco CFA";
				break;
			case R.id.guine:
				Paises.paisdestino = "Franco Guineense";
				break;
			case R.id.mocambique:
				Paises.paisdestino = "Metical";
				break;
			case R.id.portugal:
				Paises.paisdestino = "Euro";
				break;
			case R.id.stprince:
				Paises.paisdestino = "Dobra";
				break;
			case R.id.timor:
				Paises.paisdestino = "Dollar USD";
				break;
		}
		Toast.makeText(getApplicationContext(), "Moeda de Destino: " + Paises.paisdestino, Toast.LENGTH_SHORT).show();
		finish();
	}
	
	
}